package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.DbconfigMapper;
import com.cn.jdia.dc.model.Dbconfig;
import com.cn.jdia.dc.service.IDbconfigService;

@Service("dbconfigService")
public class IDbconfigServiceImpl implements IDbconfigService{

	@Resource
	private DbconfigMapper dbconfigDao;
	
	@Override
	public int addDbConfig(Dbconfig record) {
		return dbconfigDao.insertSelective(record);
	}

	@Override
	public List<Dbconfig> queryAll() {
		return dbconfigDao.selectAll();
	}

	@Override
	public Dbconfig slectByServerName(String sname) {
		return this.dbconfigDao.selectByPrimaryKey(sname);
	}

}
